import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'login',
            component: () => import('../view/login.vue')
        },
        {
            path: '/home',
            name: 'home',
            component: () => import('../view/root/home.vue')
        },
        // {
        //     path: '/kgfl',
        //     name: 'kgfl',
        //     component: () => import('../view/root/kgfl.vue')
        // },
        {
            path: '/stu',
            name: 'stu',
            component: () => import('../view/root/Stu.vue')
        },
        {
            path: '/teacher',
            name: 'teacher',
            component: () => import('../view/root/teachaer.vue')
        },
        {
            path: '/per',
            name: 'per',
            component: () => import('../view/root/Rper.vue')
        },
        {
            path: '/register',
            name: 'register',
            component: () => import('../view/root/register.vue')
        },
        {
            path: '/kgfl',
            name: 'kgfl',
            component: () => import('../view/root/kgfl.vue')
        },
        {
            path: '/student',
            name: 'student',
            component: () => import('../view/student/StuLogin.vue')
        },
        {
            path: '/tea',
            name: 'tea',
            component: () => import('../view/teacher/TeachLogin.vue')
        },
        {
            path: '/stuhome',
            name: 'stuhome',
            component: () => import('../view/student/StudentHome.vue')
        },
        {
            path: '/myclass',
            name: 'myclass',
            component: () => import('../view/student/MyClass.vue')
        },
        {
            path: '/question',
            name: 'question',
            component: () => import('../view/student/questions.vue')
        },
        {
            path: '/stuper',
            name: 'stuper',
            component: () => import('../view/student/Stuper.vue')
        },
        {
            path: '/kcgl',
            name: 'kcgl',
            component: () => import('../view/teacher/kcgl.vue')
        },
        {
            path: '/answer',
            name: 'answer',
            component: () => import('../view/teacher/answer.vue')
        },
        {
            path: '/teacherper',
            name: 'teacherper',
            component: () => import('../view/teacher/teacherper.vue')
        },

    ]

})

export default router

